// Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


/*
 * @fileoverview Template for AddUrl model.
 *
 * @author jasonstredwick@google.com (Jason Stredwick)
 */


{namespace bite.layer.soy.AddUrl}


/**
 * Returns a link tag for the view.
 * @param baseUrl Base url for relative links.
 */
{template .getView}
<link rel="stylesheet" type="text/css"
      href="
        {if $baseUrl}
          {$baseUrl}
        {/if}
        styles/add_url.css">
{/template}


/**
 * Defines the model for the add url console that allows users to update and
 * add layers to the layer management server.
 */
{template .getModel}
<div id="layer-add-url">
  <div id="layer-add-url-vertical-aligner"></div>

  <div id="layer-add-url-popup" class="layer-console">
    <div class="layer-console-title">Add Layer Manifest Url</div>

    <div class="layer-console-body">
      <fieldset>
        <ol>
          <li>
            <label for="layer-add-url-input-url"
                   class="layer-console-input-label">Layer Manifest Url</label>
            <input id="layer-add-url-input-url"
                   type="text" value="" maxlength="100" size="40">
        </ol>
      </fieldset>
    </div>

    <div class="layer-console-footer">
      <button id="layer-add-url-add" type="button">Add</button>
      <button id="layer-add-url-cancel" class="layer-console-button-right"
              type="button">Cancel</button>
    </div>
  </div>
</div>
{/template}

